package name.vaccari.matteo.tai.chat.util;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintWriter;


public class FakeHttpResponse extends EmptyHttpResponse {

	private ByteArrayOutputStream stream = new ByteArrayOutputStream();
	private PrintWriter writer = new PrintWriter(stream);

	@Override
	public PrintWriter getWriter() throws IOException {
		return writer;
	}

	public String getResponseText() {
		return stream.toString();
	}
	
}
